MicroQRCodeBarcodeShape ErrorCorrectionLevel
Gets or sets the error correction level of the Micro QR bar code shape. The error correction level indicates how much redundancy is used to encode the data in to the QR code. The amount of data that can be stored gets lesser with increase of correction level.
public MicroQRCodeErrorCorrectionLevel ErrorCorrectionLevel {get;Set} |
Return value
MicroQRCodeErrorCorrectionLevel | Error correction level used |
Example
Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);
if (scanDocument != null)
{
VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);
vectorImage.SetMarkSpeed(1000);
vectorImage.SetJumpSpeed(2000);
vectorImage.SetJumpDelay(100);
vectorImage.SetMarkDelay(100);
//Set Laser Delays
vectorImage.SetLaserOnDelay(10);
vectorImage.SetLaserOffDelay(10);
MicroQRCodeBarcodeShape mqBarcode = new MicroQRCodeBarcodeShape();
mqBarcode.Angle = 0;
mqBarcode.AutoExpand = true;
mqBarcode.CodeSize = MicroQRCodeSize.S15x15;
mqBarcode.EncodingMode = MicroQRCodeEncodingMode.Alphanumeric;
mqBarcode.ErrorCorrectionLevel = MicroQRCodeErrorCorrectionLevel.L;
mqBarcode.FlipHorizontally = false;
mqBarcode.FlipVertically = false;
mqBarcode.Height = 5;
mqBarcode.InvertImage = false;
mqBarcode.Location = new Point3D(0, 0, 0);
mqBarcode.MarkingOrder = MarkingOrder.HatchBeforeOutline;
mqBarcode.MaskPattern = MicroQRCodeMaskPattern.Default;
mqBarcode.QuietZone = false;
mqBarcode.Text = "SMAPI VER 4";
mqBarcode.HatchingDirection = BarcodeScanDirection.TopToBottom;
mqBarcode.HatchLineDirection = BarcodeScanDirection.LeftToRight;
mqBarcode.HatchPattern = BarcodeHatchPattern.CreateLineHatchPattern(0.5f, true, false);
vectorImage.AddBarcode(mqBarcode);
scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));
try
{
scanDocument.StartScanning();
}
catch
{
}
}